import request from '@/utils/request'
import {
  parseStrEmpty
} from "@/utils/yugu";
const api = {
  deleteById: '/common/upload/deleteFile',
  upload: '/common/upload/avatar'
}
// 头像上传
export function uploadAvatar(data) {
  return request({
    url: api.upload,
    method: 'post',
    data: data
  })
}
export function deletePic(filePath) {
  let url = api.deleteById
  return request({
    method: "delete",
    url: url,
    params: {
      filePath: filePath
    }
  });
}
